$(function(){
    if ($('body').attr('data-controller') =='admin/articles' &&
        $('body').attr('data-action') =='index') {
        $('#category_id_').multiselect({
            enableFiltering: true,
            buttonWidth: '150px',
            includeSelectAllOption: true,
            allSelectedText: '已选择全部分类',
            nonSelectedText: '未选择任何分类'
        });
        $('#tag_id_').multiselect({
            enableFiltering: true,
            buttonWidth: '150px',
            includeSelectAllOption: true,
            allSelectedText: '已选择全部标签',
            nonSelectedText: '未选择任何标签'
        });
    }
});